import request from '@/utils/request'

// 查询人民工兵元数据列表
export function listMetadata(query) {
  return request({
    url: '/library/rmgbMetadata/list',
    method: 'get',
    params: query
  })
}

// 查询人民工兵元数据详细
export function getMetadata(sysid) {
  return request({
    url: '/library/rmgbMetadata/' + sysid,
    method: 'get'
  })
}

// 新增人民工兵元数据
export function addMetadata(data) {
  return request({
    url: '/library/rmgbMetadata',
    method: 'post',
    data: data
  })
}

// 修改人民工兵元数据
export function updateMetadata(data) {
  return request({
    url: '/library/rmgbMetadata',
    method: 'put',
    data: data
  })
}

// 删除人民工兵元数据
export function delMetadata(sysid) {
  return request({
    url: '/library/rmgbMetadata/' + sysid,
    method: 'delete'
  })
}

// 导出人民工兵元数据
export function exportMetadata(query) {
  return request({
    url: '/library/rmgbMetadata/export',
    method: 'get',
    params: query
  })
}
